package com.hzj.controller;

import com.hzj.utils.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@ResponseBody
public class test {
    @Autowired
    RedisUtil redisUtil;
    @RequestMapping("")
    public List<Object> test(){
        List<Object> list = redisUtil.lGet("list", 0, -1);
        return list;
    }
}
